package com.jr.service.impl;


import com.jr.entry.Enterprise;
import com.jr.entry.Resume;
import com.jr.mapper.EnterpriseMapper;
import com.jr.pojo.EnterprisewithPost;
import com.jr.service.EnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class EnterproseServiceImpl implements EnterpriseService {
    @Autowired
    private EnterpriseMapper enterpriseMapper;


    @Override
    public ArrayList<EnterprisewithPost> postShow(EnterprisewithPost enterprisewithPost) {
        System.out.println("service层的查询结果"+enterpriseMapper.selectByIdEnterprise(enterprisewithPost));
        return enterpriseMapper.selectByIdEnterprise(enterprisewithPost);
    }

    @Override
    public ArrayList<Resume> selectResume(Resume resume) {
        ArrayList<Resume> list = enterpriseMapper.selectResume(resume);
        return list;
    }
}
